package com.xiaotao.mapper;

import com.xiaotao.entity.GroupBuyDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * GroupBuyDetailsDAO继承基类
 */
@Mapper
@Repository
public interface GroupBuyDetailsMapper extends MyBatisBaseDao<GroupBuyDetails, Integer> {
    Integer batchInsert(@Param("groupBuyDetailsList") List<GroupBuyDetails> groupBuyDetailsList);

    Integer deleteByGroupId(Integer id);

    List<GroupBuyDetails> findByGroupId(Integer id);

    List<GroupBuyDetails> findByGoodsId(Integer id);

    Integer batchDelete(@Param("byGoodsId") List<GroupBuyDetails> byGoodsId);
}